testsuite: Add test for crasher
authorBenjamin Otte <otte@redhat.com>
Thu, 15 Jul 2021 21:33:54 +0000 (23:33 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 15 Jul 2021 21:43:28 +0000 (23:43 +0200)
Test for the crasher in !4096

testsuite/gsk/compare/scale-textures-negative.node [new file with mode: 0644]
testsuite/gsk/compare/scale-textures-negative.png [new file with mode: 0644]
testsuite/gsk/meson.build

diff --git a/testsuite/gsk/compare/scale-textures-negative.node b/testsuite/gsk/compare/scale-textures-negative.node
new file mode 100644 (file)
index 0000000..fbf1d82
--- /dev/null
@@ -0,0 +1,48 @@
+transform {
+  transform: scale(1, 1);
+  child: opacity {
+    opacity: 0.6;
+    child: container {
+      texture {
+        bounds: 0 0 50 50;
+        texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25' fill='red'/></svg>");
+      }
+    }
+  }
+}
+transform {
+  transform: scale(1, -1);
+  child: opacity {
+    opacity: 0.6;
+    child: container {
+      texture {
+        bounds: 0 0 50 50;
+        texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25' fill='lime'/></svg>");
+      }
+    }
+  }
+}
+transform {
+  transform: scale(-1, -1);
+  child: opacity {
+    opacity: 0.6;
+    child: container {
+      texture {
+        bounds: 0 0 50 50;
+        texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25' fill='blue'/></svg>");
+      }
+    }
+  }
+}
+transform {
+  transform: scale(-1, 1);
+  child: opacity {
+    opacity: 0.6;
+    child: container {
+      texture {
+        bounds: 0 0 50 50;
+        texture: url("data:,<svg width='50' height='50'><rect x='25' y='25' width='25' height='25' fill='yellow'/></svg>");
+      }
+    }
+  }
+}
diff --git a/testsuite/gsk/compare/scale-textures-negative.png b/testsuite/gsk/compare/scale-textures-negative.png
new file mode 100644 (file)
index 0000000..8624e6c
Binary files /dev/null and b/testsuite/gsk/compare/scale-textures-negative.png differ
index 4bdfc8ceaf89ff3fcaf251fb917f97ff26ea6f57..1a20fe822307b60b1990fe4f154762d4c5903d3a 100644 (file)
@@ -69,6 +69,7 @@ compare_render_tests = [
   'outset_shadow_rounded_top',
   'outset_shadow_simple',
   'scaled-cairo',
+  'scale-textures-negative',
   'scale-up-down',
   'shadow-in-opacity',
   'texture-url',